import React from 'react';
import Testtrong from '../../src/Strong.js';
var ReactTestUtils = require('react-addons-test-utils');
var assert = require('assert');

/*使用React提供的react-addons-test-utils插件，
	利用assert 插件，UT是否用strong标签。
 */


describe('Testtrong', () => {
    it('往页面插入一段带有strong标签的组件', () => {
        let instance = ReactTestUtils.renderIntoDocument(
            <Testtrong>
                <strong>Message</strong>
            </Testtrong>
        );
        assert.ok(ReactTestUtils.findRenderedDOMComponentWithTag(instance, 'strong'));
    });
});